package day03;

public class TwoForDemo {
    public static void main(String[] args) {
        test04();
    }

    public static void test01() {
        for (int i = 0; i < 6; i++) {
            for (int j = 0; j < 10; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public static void test02() {
        for (int i = 0; i < 6; i++) {
            for (int j = 0; j < 10; j++) {
                if (i == 0 || i == 5 || j == 0 || j == 9) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }

    public static void test03() {
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j <= i; j++) {
                System.out.println("*");
            }
            System.out.println();
        }
    }

    public static void test04() {
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j <= i; j++) {
                if (j == 0 || i == 9 || i == j) {
                    System.out.print("*");
                } else {
                    System.out.print("");
                }
            }
            System.out.println();

        }
    }
}